import request from "@/utils/http.js";

/**
 * 获取验证码
 * @returns {AxiosPromise}
 */
export function captcha() {
    return request.get("/captcha",null);
}

/**
 * 登录
 * @param params
 * @returns {AxiosPromise}
 */
export function login(params) {
    return request.post("/login",params);
}


/**
 * 登出
 * @returns {AxiosPromise}
 */
export function logout() {
    return request.post("/logout",null);
}